import request from '@/utils/request'


// 查询列表
export function listWaterDamage(query) {
  return request({
    url: '/sjgtw-emergency/waterDamage/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getWaterDamage(id) {
  return request({
    url: '/sjgtw-emergency/waterDamage/' + id,
    method: 'get'
  })
}

// 新增
export function addWaterDamage(data) {
  return request({
    url: '/sjgtw-emergency/waterDamage',
    method: 'post',
    data: data
  })
}

// 修改
export function updateWaterDamage(data) {
  return request({
    url: '/sjgtw-emergency/waterDamage',
    method: 'put',
    data: data
  })
}

// 删除
export function delWaterDamage(id) {
  return request({
    url: '/sjgtw-emergency/waterDamage/' + id,
    method: 'delete'
  })
}
// 左右侧
export function geteLeftRightType() {
  return request({
    url: "/sjgtw-system/dict/data/type/eg_left_right",
    method: 'get'
  })
}